package com.example.demofdfs.example.queue;

import java.util.Date;

/**
 * 
 * 定时任务
 */
public class Task {

	// 任务id
	private Integer id;
	// 任务名称
	private String name;
	// 执行时间
	private Long time;
	
	public Task(Integer id, String name, Long time) {
		this.id = id;
		this.name = name;
		this.time = time;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getTime() {
		return time;
	}
	public void setTime(Long time) {
		this.time = time;
	}
	@Override
	public String toString() {
		return "Task [id=" + id + ", name=" + name + ", time=" + new Date(time).toString() + "]";
	}
	
	
}
